import request from '@/libs/axios'

export const codeLoginApi = (params) => {
  return request({
    url: '/blog/user/login/login/code',
    params
  }).then(res => res ? res.data : {})
}

export const passwordLoginApi = (params) => {
  return request({
    url: '/blog/user/login/login/password',
    params
  }).then(res => res ? res.data : {})
}

export const getCodeApi = (params) => {
  return request({
    url: '/blog/user/login/code',
    params
  }).then(res => res ? res.data : {})
}
